import request from '@/config/request.js'

const baseApi = {
  findGoods (data) {
    return request.post('goods/find', data)
  },
  addGoods (data) {
    return request.post('goods/add', data)
  },
  updateGoods (data) {
    return request.post('goods/update', data)
  },
  delGoods (data) {
    return request.post('goods/del', data)
  },


  findUser (data) {
    return request.post('user/find', data)
  },
  addUser (data) {
    return request.post('user/add', data)
  },
  updateUser (data) {
    return request.post('user/update', data)
  },
  delUser (data) {
    return request.post('user/del', data)
  },


  loginApi (data) {
    return request.post('login/login', data)
  },
  registerApi (data) {
    return request.post('login/register', data)
  },




}

export default baseApi
